package org.yate.oa.service;

import java.util.List;
import java.util.Map;

import org.yate.oa.model.HistoryEntity;
import org.yate.oa.utils.Pagination;

public interface IHistoryService extends IBaseService<HistoryEntity, Integer> {

	public List<HistoryEntity> getEntitiesBy(final HistoryEntity e);

	public List<HistoryEntity> getEntities();

	public Pagination<HistoryEntity> getEntitiesByCreaterId(final int idx, final int size, final String orderField, final String orderMode, final String... strs);
	
	public Pagination<HistoryEntity> getEntitiesByCreaterId2(final int idx, final int size, final String orderField, final String orderMode, final String... strs);

	public Pagination<HistoryEntity> getEntitiesByApproverId(final int idx, final int size, final String orderField, final String orderMode, final String... strs);

	Pagination<HistoryEntity> getEntitieSearch(final int idx, final int size, final String orderField, final String orderMode, final Map<String, Object> map);

	public List<HistoryEntity> getEntitiesBySearch(Map<String, Object> map);
}
